if(CMAKE_COMPILER_IS_GNUCC)
	set_source_files_properties(
		syncup-service-server.c ../syncup-service.c syncup-service-client.c
		PROPERTIES COMPILE_FLAGS "-Wno-unknown-pragmas")
endif()

add_executable(syncup-service-server syncup-service-server.c ../syncup-service.c)
target_link_libraries(syncup-service-server syncup-service_s_lib ${GLIB2_LIBRARIES})
add_dependencies(syncup-service-server syncup_rpc)

add_executable(syncup-service-client syncup-service-client.c)
target_link_libraries(syncup-service-client syncup-service_c_lib)
add_dependencies(syncup-service-client syncup_rpc)